package com.crm.manager.mapper;

import com.crm.common.core.domain.R;
import com.crm.manager.domain.vo.ActivityStatisticsListVO;
import com.crm.manager.domain.vo.VulnerabilityMapVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface Report2Mapper {
    VulnerabilityMapVO getVulnerabilityMap(@Param("begin") LocalDate begin,@Param("end") LocalDate end);

    @MapKey("days")
    List<Map> salesStatistics(@Param("begin") LocalDate begin,@Param("end") LocalDate end);

    @MapKey("deptName")
    List<Map> deptStatisticsList(@Param("begin") LocalDate begin,@Param("end") LocalDate end);

    @MapKey("channel")
    List<Map> chanelStatistics(@Param("begin") LocalDate begin,@Param("end") LocalDate end);

    @MapKey("activity")
    List<Map> activityStatistics(@Param("begin") LocalDate begin,@Param("end") LocalDate end);

    List<ActivityStatisticsListVO> activityStatisticsList(@Param("begin") LocalDate begin,@Param("end") LocalDate end);
}
